#define DISABLED

#ifndef DISABLED
/* INCLUDES ******************************************************************/

#include "ses/ses_common.h"
#include "ses/ses_led.h"

// button wiring on SES board
#define BUTTON_ROTARY_PORT		PORTB
#define BUTTON_ROTARY_PIN		6
#define BUTTON_JOYSTICK_PORT	PORTB
#define BUTTON_JOYSTICK_PIN		7

/* FUNCTION DEFINITION *******************************************************/

/**button demo application using polling
 */

#include "ses/ses_button.h"
#include "ses/ses_led.h"

int main(void) {

	button_init();
	led_greenInit();
	led_redInit();

	while (1) {
		if(button_isRotaryPressed()){
			led_greenOn();
		} else {
			led_greenOff();
		}

		if(button_isJoystickPressed()){
			led_redOn();
		} else {
			led_redOff();
		}
	}

	return 0;
}


#endif

